package com.pym.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class staff {
    private Integer id;
    private String name;
    private Integer sex;//0代表女 1代表男
    private department namee;
    private String address;
    private String password;

    @Override
    public String toString() {
        return "staff{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex=" + sex +
                ", department=" + namee.getName()+
                ", address='" + address + '\'' +password+
                '}';
    }
}
